'''
Created on 31 okt 2012

@author: Lanboost
'''
import Image

class CImage:
    '''
    classdocs
    '''
    image = None
    title = ""
    description = ""

    def __init__(self):
        '''
        Constructor
        '''
        return None
    
    def open(self, path):
        self.image = Image.open(path)
    
    def getTitle(self):
        return self.title
    
    def getDescription(self):
        return self.description
    
    def setTitle(self, title):
        self.title = title
        
    def setDescription(self, desc):
        self.description = desc
        
    def applyFilter(self, aCFilter):
        if self.image != None:
            self.image = aCFilter.applyFilter(self.image)
        
    def getImage(self):
        return self.image
    def save(self, path):
        self.image.save(path)